package com.binance.notification.data.mapper;

import com.binance.master.annotations.DefaultDB;
import com.binance.notification.data.models.MessagePushBody;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lufei
 * @date 2018/11/5
 */
@DefaultDB
public interface MessagePushBodyMapper {

    Integer save(MessagePushBody body);

    Integer update(MessagePushBody body);

    MessagePushBody getById(@Param("id") Long id);

    List<MessagePushBody> selectByMessageId(@Param("messageId") Long messageId);

}
